//
//  ECServiceViewController.m
//  Edu_iOS
//
//  Created by apple on 2017/9/11.
//  Copyright © 2017年 yanyan. All rights reserved.
//

#import "ECServiceViewController.h"
#import <WebKit/WebKit.h>
#import "UINavigationBar+Awesome.h"

@interface ECServiceViewController ()

@end

@implementation ECServiceViewController


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    [self.navigationController.navigationBar lt_reset];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];
    
    self.title = @"服务协议";
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"navigation_Return"] style:UIBarButtonItemStylePlain target:self action:@selector(action_dismiss)];
    
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundColorAttributeName:[UIColor colorWithRed:0.13f green:0.13f blue:0.13f alpha:1.00f]}];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    
    WKWebView *webView = [[WKWebView alloc]initWithFrame:CGRectMake(0, 64, kScreenWidth, kScreenHeight-64)];
    [self.view addSubview:webView];
    
    NSURL *url = [NSURL URLWithString:@"http://www.jianshu.com"];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    
}

-(void)action_dismiss{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
